
ObjectCreater = class()

ObjectCreater.Type = {
SimpleObject = 0,
AdvancedObject = 1
}


function ObjectCreater:init(id,name,tex,icon)
    self.id = id
    self.tex = tex
    self.name = name
    self.icon = icon
    self.objectType = nil
    Object.objects[id] = self
    -- table.insert(Object.objects,id,self)
end

function ObjectCreater:createBody(x,y)
    
end

function ObjectCreater:startCreating(body)
    body.childObjects = {}
    body.addChildObject = self.addChildObject
end

function ObjectCreater:addChildObject(body)
    table.insert(self.childObjects,body)
end

function ObjectCreater:addToBackBag(x,y)
    self.backBagPosition = vec2(x,y)
end

-- 此方法的self指一个body实例
function ObjectCreater:draw()
    
end
